package chapter1.zyq1_str_obj;

import java.io.Serializable;
import java.time.LocalDate;
import java.util.List;

public class Student4 implements Serializable {
    Integer id;
    String name;
    char gender;
    LocalDate birthday;
    double gpa;
    List<String> readBooks;

    public Student4() {
    }

    public Student4(Integer id, String name, char gender, LocalDate birthday, double gpa, List<String> readBooks) {
        this.id = id;
        this.name = name;
        this.gender = gender;
        this.birthday = birthday;
        this.gpa = gpa;
        this.readBooks = readBooks;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public char getGender() {
        return gender;
    }

    public void setGender(char gender) {
        this.gender = gender;
    }

    public LocalDate getBirthday() {
        return birthday;
    }

    public void setBirthday(LocalDate birthday) {
        this.birthday = birthday;
    }

    public double getGpa() {
        return gpa;
    }

    public void setGpa(double gpa) {
        this.gpa = gpa;
    }

    public List<String> getReads() {
        return readBooks;
    }

    public void setReads(List<String> reads) {
        this.readBooks = reads;
    }
    public String toString() {
        return "Student4{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", gender=" + gender +
                ", birthday=" + birthday +
                ", gpa=" + gpa +
                ", readBooks=" + readBooks +
                '}';
    }
}